import request from '@/utils/request'

// 查询施工队图片信息列表
export function listPicInfo(query) {
  return request({
    url: '/construction/picInfo/list',
    method: 'get',
    params: query
  })
}

// 查询施工队图片信息详细
export function getPicInfo(constructionPicId) {
  return request({
    url: '/construction/picInfo/' + constructionPicId,
    method: 'get'
  })
}

// 新增施工队图片信息
export function addPicInfo(data) {
  return request({
    url: '/construction/picInfo',
    method: 'post',
    data: data
  })
}

// 修改施工队图片信息
export function updatePicInfo(data) {
  return request({
    url: '/construction/picInfo',
    method: 'put',
    data: data
  })
}

// 删除施工队图片信息
export function delPicInfo(constructionPicId) {
  return request({
    url: '/construction/picInfo/' + constructionPicId,
    method: 'delete'
  })
}

// 导出施工队图片信息
export function exportPicInfo(query) {
  return request({
    url: '/construction/picInfo/export',
    method: 'get',
    params: query
  })
}


// 上传图片
export function uploadImage(data) {
  return request({
    url: '/construction/picInfo/uploadImage',
    method: 'post',
    data: data
  })
}
